package com.xiaoluo.file;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.Environment;
import android.util.Log;

import javax.security.auth.login.LoginException;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getFilesDir();
        Log.i(TAG, "onCreate: fileDir:" + getFilesDir());
        getCacheDir();
        Log.i(TAG, "onCreate: CacheDir:" + getCacheDir());
        Environment.getExternalStorageDirectory();
        Log.i(TAG, "onCreate: getExternalStorageDirectory" + Environment.getExternalStorageDirectory());
    }
}
